package com.hy.mydesktop.shared.persistence.domain.gxt;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import net.sf.gilead.pojo.java5.legacy.LightEntity;


import com.google.gwt.user.client.rpc.IsSerializable;
import com.hy.mydesktop.client.component.type.ComponentControllerEnum;
import com.hy.mydesktop.shared.persistence.domain.gxt.constant.LibConstants;

/**
 * 
 * 
 * <ul>
 * <li>开发作者：花宏宇</li>
 * <li>设计日期：2012-2-3；时间：上午10:54:55</li>
 * <li>类型名称：GwtRpcModel</li>
 * <li>设计目的：忘记了，是做什么用的</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
//@Entity
public class GwtRpcModel extends MyBaseModel{// extends GxtComponentMetaNodeModel{
	
	
	//registereventtypes
	//gxtcomponentmetanodemodel
	/**
	 * <ul>
	 * <li>开发作者：花宏宇</li>
	 * <li>设计日期：2010-8-29；时间：下午02:28:48</li>
	 * <li>字段类型：long；字段名称：serialVersionUID</li>
	 * <li>设计目的：</li>
	 * </ul>
	 * <ul>
	 * <b>修订编号：</b>
	 * <li>修订日期：</li>
	 * <li>修订作者：</li>
	 * <li>修订原因：</li>
	 * <li>修订内容：</li>
	 * </ul>
	 */
	private static final long serialVersionUID = 6357423258767982589L;
	private int leftValue;
	private int rightValue;
	@Column(nullable=true)
	public int getLeftValue() {
		return super.get("leftValue",0);
	}

	public void setLeftValue(int leftValue) {
		super.set("leftValue", leftValue);
	}
	@Column(nullable=true)

	public int getRightValue() {
		return super.get("rightValue",0);
	}

	public void setRightValue(int rightValue) {
		super.set("rightValue", rightValue);
	}
	/*public int getLeftValue() {
		return leftValue;
	}

	public void setLeftValue(int leftValue) {
		this.leftValue = leftValue;
	}

	public int getRightValue() {
		return rightValue;
	}

	public void setRightValue(int rightValue) {
		this.rightValue = rightValue;
	}*/

	/*@Id
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}*/

	
	private String id;
	//private int parentLeftValue;
	
	/*public int getParentLeftValue() {
		return parentLeftValue;
	}

	public void setParentLeftValue(int parentLeftValue) {
		this.parentLeftValue = parentLeftValue;
	}*/

	
	
	
	/**
	 * 
	 * <ul>
	 * <li>方法含义：获取将要创建的控件的元数据</li>
	 * <li>方法作者：花宏宇</li>
	 * <li>编写日期：2010-9-19；时间：下午上午11:35:35</li>
	 * </ul>
	 * <ul>
	 * <b>修订编号：</b>
	 * <li>修订日期：</li>
	 * <li>修订作者：</li>
	 * <li>修订原因：</li>
	 * <li>修订内容：</li>
	 * </ul>
	 * @return
	 */
	/*@Transient
	public GxtComponentMetaNodeModel getGxtComponentMetaNodeModel() {
		return super.get("gxtComponentMetaNodeModel");
	}

	public void setGxtComponentMetaNodeModel(GxtComponentMetaNodeModel gxtComponentMetaNodeModel) {
		super.set("gxtComponentMetaNodeModel", gxtComponentMetaNodeModel);
	}*/
	
	/*@Transient
	//@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.EAGER)
	public List<RegisterEventType> getRegisterEventTypes() {
		return super.get("registerEventTypes");
	}

	public void setRegisterEventTypes(List<RegisterEventType> registerEventTypes) {
		super.set("registerEventTypes", registerEventTypes);
	}*/
	
	//@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.EAGER)
	/*@Transient
	public Set<GxtComponentControllerMetaNodePorperty> getControllerProperties() {
		return super.get("controllerProperties");
	}

	public void setControllerProperties(Set<GxtComponentControllerMetaNodePorperty> controllerProperties) {
		super.set("controllerProperties", controllerProperties);
	}*/
	
	
	
	/**
	 * 
	 * <ul>
	 * <li>方法含义：获取将要创建的控件控制器Controller的真实类型</li>
	 * <li>方法作者：花宏宇</li>
	 * <li>编写日期：2010-9-19；时间：下午上午11:35:35</li>
	 * </ul>
	 * <ul>
	 * <b>修订编号：</b>
	 * <li>修订日期：</li>
	 * <li>修订作者：</li>
	 * <li>修订原因：</li>
	 * <li>修订内容：</li>
	 * </ul>
	 * @return
	 */
	
			
	
	

	
	
	
	
	/**
	 * 构造函数
	 */
	/*public GwtRpcModel ( )
	{
		super ( ) ;

		
	}*/

	
	
	
	
	

}
